package me.zhengjie.modules.other.service.dto;

import com.alibaba.druid.util.StringUtils;
import com.qiaofang.applet.service.property.service.dto.SalePropertyQueryDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
public class SalePropertyAdminQueryDto extends SalePropertyQueryDto {

    @ApiModelProperty(value = "是否主推：是/否，Admin后台使用")
    private String recommendStr;

    public void setRecommendStr(String recommendStr) {
        this.recommendStr = recommendStr;
        super.setRecommend(StringUtils.equals(recommendStr, "是"));
    }
}
